home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / progut~1 / proff.zoo / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-04  |  2.0 KB  |  117 lines

  1. /*
  2.  * defs.h
  3.  *
  4.  * #define rainbow    - rainbow CP/M-86 version
  5.  * #define vms        - vms version (predefined by VAX11C compiler)
  6.  * #define unix        - unix version
  7.  * #define ATARIST    - Atari St series
  8.  * #define ALCYON    - Atari St series with Alcyon C compiler
  9.  */
  10.  
  11. /*
  12.  *  Synonyms for ASCII control characters
  13.  *
  14.  */
  15.  
  16. #define    BACKSPACE    8
  17. #define    BEL        7
  18. #define BELL        7
  19. #define    BLANK        32
  20. #define    CARRIAGE_RETURN    13
  21. #define    NEWLINE        10
  22. #define    RUBOUT        127
  23. #define    TAB        9
  24.  
  25. /*
  26.  * misc. definitions
  27.  *
  28.  */
  29.  
  30. #ifdef EOS
  31. #undef EOS
  32. #endif
  33. #define    EOS        0
  34. #define    HUGE        30000
  35. #define    NO        0
  36. #define    OK        0
  37. #define    YES        1
  38. #define FALSE        0
  39. #define TRUE        1
  40. #define    FILENAMESIZE    50
  41. #define    MAXCHARS    20
  42. #define MAXLINE        256
  43. #define MAXTOK        80
  44. #define ARB        MAXLINE
  45.  
  46. #define    MAXCARD        MAXLINE-1
  47. #define    MAXNAME        FILENAMESIZE
  48.  
  49. #define    NCHARS        33
  50. #define MAXOFILES    12
  51.  
  52. #define    ARGFLAG    '$' 
  53. #define    INSIZE    MAXLINE 
  54. #define    MAXOUT    2*MAXLINE 
  55. #define    MAXDEF    200 
  56. #define    NFILES    MAXOFILES-4
  57. #define    PAGENUM        '#' 
  58. #define    CURRENTDATE    '%' 
  59. #define ESCAPE        '@'
  60. #define VESCAPE        '$'
  61. #define    PAGEJECT    12          /* 12 is ASCII formfeed (control-L) */
  62. #define    PAGEWIDTH    65 
  63. #define    PAGELEN        62 
  64. #define    BUFSIZE        512            /* push back buffer */
  65. /*
  66.  * lexical analyser values
  67.  *
  68.  * include lexical analyser return constants
  69.  * generated by ltb.
  70.  *
  71.  */
  72. #include "lextab.d"        /* expended format & roff & runoff */
  73.  
  74. #define    UNKNOWN    999
  75. #define MACRO    0
  76. #define NEGATED -1
  77. #define    LEFT    1 
  78. #define    CENTER    2 
  79. #define    RIGHT    3
  80.  
  81. /*
  82.  * structure definition for contents linked list
  83.  *
  84.  */
  85.  
  86. struct clist {        /* list struct for contents  */
  87.     char level;
  88.     char *str;
  89.     int  page;
  90.     struct clist *nextc;
  91. };
  92.  
  93. #ifdef putchar
  94. #undef putchar
  95. #ifdef ATARIST
  96. #ifdef ALCYON
  97. #define putchar(c) st_putc((c),poutput);
  98. #else
  99. #define putchar(c) putc((c),poutput);
  100. #endif
  101. #else
  102. #define putchar(c) putc((c),poutput);
  103. #endif
  104. #endif
  105.  
  106. /*
  107.  * The following definitions are required
  108.  * till they fix gemlib
  109.  */
  110.  
  111. #ifdef ATARIST
  112. #ifdef ALCYON
  113. #define printf st_printf
  114. #define fprintf st_fprintf
  115. #endif
  116. #endif
  117.